home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-09-01 | 1.7 KB | 61 lines | [TEXT/KAHL] |
- //
- // "XcShell" Skeletal XCMD/XFCN constants
- //
- // Copyright ©1991 Mark M. Owen -- All rights reserved
- //
-
- #pragma once
-
- //////////////////////////////////////////////////////////////
- // the following constants need NO modification //
- //////////////////////////////////////////////////////////////
- #define DEAD 1
- #define LIVE 0
- #define vInError -1
-
- //////////////////////////////////////////////////////////////
- // use unique values for the constants below //
- //////////////////////////////////////////////////////////////
- #define GLOBALTYPE 'pGlb'
- #define GLOBALS "\pXCMDGlobals"
- #define VERBS "\pXCMDVerbs"
- #define NPARAMS "\pXCMDNParams"
- #define ERRORTAG "\pXCMDErrorTag"
- #define ERRORS "\pXCMDErrors"
-
- //////////////////////////////////////////////////////////////
- // The entries in the verbs enumeration MUST be in the //
- // same order as the strings in the VERBS STR# resource. //
- //////////////////////////////////////////////////////////////
- enum verbs {
- vVersion
- ,vDispose
-
- //////////////////////////////
- // Add other verbs here //
- //////////////////////////////
- };
-
- //////////////////////////////////////////////////////////////
- // The entries in the errors enumeration MUST be in the //
- // same order as the strings in the ERRORS STR# resource. //
- //////////////////////////////////////////////////////////////
- enum errors {
- errNone = 0
- ,errMissingFunction
- ,errUnrecognizedVerb
- ,errWrongParamCount
- ,errParam2Invalid
- ,errIndexOutOfBounds
- ,errPositiveNumberRequired
- ,errOneOrGreaterRequired
- ,errTwoOrGreaterRequired
- ,errNoMemInGeneral
- ,errNonZeroRequired
-
- //////////////////////////////
- // Add other errors here //
- //////////////////////////////
- };
-
-